﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="orderlist.aspx.cs" Inherits="OF.Web.admin.orderlist" %>

<%@ Register Assembly="OF.Controls" Namespace="OF.Controls" TagPrefix="cc1" %>
<%@ Register Src="~/admin/controls/head.ascx" TagPrefix="uc1" TagName="head" %>
<%@ Register Src="~/admin/controls/footer.ascx" TagPrefix="uc1" TagName="footer" %>
<%@ Register Src="~/admin/controls/menu.ascx" TagPrefix="uc1" TagName="menu" %>

<!DOCTYPE HTML>
<html>
<head>
    <title>商户资料</title>
    <meta charset="gbk">
    <link href="res/css/main.css" rel="stylesheet">
    <link href="res/css/public.css" rel="stylesheet">
       <link href="res/css/table.css" rel="stylesheet">
    <link href="res/css/flexigrid.css" rel="stylesheet">
    <script type="text/javascript" src="res/js/jquery-1.8.0.min.js"></script>
    <script src="res/js/flexigrid.pack.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
        <uc1:head runat="server" ID="head" />
        <div id="page">
            <div class="clearfix" id="content">
                <div class="col-main">
                    <div class="main-wrap">
                        <div class="division">
                            <table>
                                <tbody>
                                <tr>
                                    <td>订单号/联系方式:</td>
                                    <td>
                                        <cc1:OFTextBox ID="txtkey" runat="server" CssClass="ipt ipt-150"></cc1:OFTextBox>
                                    </td>
                                    <td>状态:</td>
                                    <td>
                                        <cc1:OFDropDownList ID="ddlState" runat="server" CssClass="radiobuttonlist" SearcherGroupName="basic" SqlCharacter="等于"
                                            SqlField="state">
                                            <asp:ListItem Value="">全部</asp:ListItem>
                                            <asp:ListItem Value="0">待处理</asp:ListItem>
                                            <asp:ListItem Value="1">处理中</asp:ListItem>
                                            <asp:ListItem Value="2">已完成</asp:ListItem>
                                            <asp:ListItem Value="3">取消</asp:ListItem>
                                            <asp:ListItem Value="4">失效</asp:ListItem>
                                        </cc1:OFDropDownList>
                                    </td>
                                    <td>
                                        <asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text="搜索" CssClass="rz-deep-btn" />
                                    </td>
                                </tr>
                                    </tbody>
                            </table>
                        </div>
                    </div>
                    <br />
                    <div class="main-wrap">
                        <table id="flexme1" class="gridScroller">
                            <thead>
                                <tr>
                                    <th width="40">编号</th>
                                    <th width="130">订单号</th>
                                    <th width="80">联系方式</th>
                                    <th width="50">订单类型</th>
                                    <th width="40">总额</th>
                                    <th width="120">下单时间</th>
                                    <th width="80">当前状态</th>
                                    <th width="50">编辑</th>
                                </tr>
                            </thead>
                            <tbody>
                                <asp:Repeater ID="rptList" runat="server">
                                    <ItemTemplate>
                                        <tr>
                                            <td><%#Eval("id") %></td>
                                            <td><%#Eval("ordersn") %></td>
                                            <td><%#Eval("phone") %></td>
                                            <td><%#Eval("ordertype").ToString()=="1"?"外卖":"点餐" %></td>
                                            <td><%#Eval("allprice") %></td>
                                            <td><%#Eval("addtime") %></td>
                                            <td><%#GetState(Eval("state"),Eval("id")) %></td>

                                        </tr>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </tbody>
                        </table>
                        <%--分页--%>
                        <cc1:OFPager ID="OFPager" runat="server" OnPageChanged="Pager_PageChanged" PageSize="15" />
                        <asp:Label ID="Nodata" runat="server" Text="暂无数据" CssClass="nodata"></asp:Label>
                    </div>

                </div>
                <uc1:menu runat="server" ID="menu" />
            </div>
        </div>

        <uc1:footer runat="server" ID="footer" />
        <script type="text/javascript">
            $(document).ready(function ($) {
                $('#flexme1').flexigrid();
            });
        </script>
    </form>
</body>
</html>


